import java.util.*;

public class Hstack
{
	Hashtable p_scope=null;
	Hstack outer=null;
	public Hstack()
	{
		p_scope=new Hashtable();
		outer=null;
	}
	
	//takes ID name and type String as its value
	public void add_or_modify_variable(String s, String T)
	{
		p_scope.put(s, T);
	}
	
	//takes ID name and type Element as its value
	public void add_or_modify_variable(String s, Element T)
	{
		p_scope.put(s, T);
	}
	
	//takes ID name and type ArrayList as its value
	public void add_or_modify_variable(String s, ArrayList<String> T)
	{
		p_scope.put(s, T);
	}
	
	public Object get_variable(String s)
	{
		Object t;
		t=p_scope.get(s);
		return t;
	}
	
	public Hashtable get_p_scope()
	{
		return p_scope;
	}
	public Hstack get_outer()
	{
		return outer;
	}
	public void set_p_scope(Hashtable h)
	{
		p_scope=h;
	}
	public void set_outer(Hstack h)
	{
		outer=h;
	}
}